<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<link href="css/admin.css" rel="stylesheet" />
<script src="script/jquery-1.10.2.js"></script>
<script src="ckeditor/ckeditor.js"></script>
</head>
<body>
	<div id="page">
		<div id="header">
			<div id="corpTitle">美食前线后台</div>
			<div id="rightTitle">新闻编辑</div>
		</div>
		<div id="main">
			<div id="nav">
				<div class="menu">
					<ul>
						<li>类别管理</li>
						<li>美食管理</li>
						<li>新闻管理</li>
						<li>留言管理</li>
						<li>用户管理</li>
					</ul>
				</div>
			</div>
			<div id="container">
				<form action="addNewsManegement" method="post">
					<input type="hidden" name="id" value="${news.getId()}" />
					<table class="tbFoods">
						<c:if test="${id<0}">
							<tr>

								<td>新闻标题:</td>
								<td><input type="text" name="title" /></td>
							</tr>
							<tr>
								<td>新闻内容:</td>
								<td class="foodsDesc"><textarea name="content"
										class="ckeditor"></textarea></td>
							</tr>
						</c:if>
						<c:if test="${id>=0}">
							<tr>
								<td>新闻标题:</td>
								<td><input type="text" name="title"
									value="${news.getTitle()}" /></td>
							</tr>

							<tr>
								<td>新闻内容:</td>
								<td class="foodsDesc"><textarea name="content"
										class="ckeditor">${news.getContent()}</textarea></td>

							</tr>
						</c:if>
						<tr>
							<td></td>
							<td><input type="submit" value="保存" /><input type="reset"
								value="取消" /></td>
						</tr>
					</table>
				</form>
			</div>
			<div class="clear"></div>
		</div>


		<div id="footer">
			<p>
				<a>首页|</a><a>关于我们|</a><a>联系我们</a>
			</p>
			<p>@©2016 网站样板-餐饮 版权所有</p>
			<p>技术支持：广州广力 | 手机版 | 管理登录</p>
		</div>
	</div>

</body>
</html>

